package ServerOutput;

import Server.*;
import java.io.DataInputStream;
import java.io.DataOutputStream;

public class Output {
    private Server.FileTypes outType = Server.FileTypes.none;
    private Server.ReturnCodes returnCode = Server.ReturnCodes.NOT_FOUND_404; 
    private String bytes = "";
    private DataInputStream dis = null;
    private Boolean isStreamedOutput = false;
    
    public Output(Boolean streamedOutput) {
        isStreamedOutput = streamedOutput; 
    }
    
    public Output() {
        this(false);
    }
    
    public void setOutputType(Server.FileTypes type) {
        outType = type;
    }
    
    public void setReturnCode(Server.ReturnCodes code) {
        returnCode = code;
    }
    
    public Server.FileTypes getFileType() {
        return outType;
    }
    
    public Server.ReturnCodes getReturnCode() {
        return returnCode;
    }
    
    public void setBytes(String b) {
        bytes = b;
    }
    
    public String getBytes() {
        return bytes;
    }
    
    public void setDataDataInputStream(DataInputStream ds) {
        dis = ds;
    }
    
    public DataInputStream getDataInputStream() {
        return dis;
    }
    
    public Boolean isStreamedOutput() {
        return isStreamedOutput;
    } 
}
